/**菜单的配置信息**/
define([ "app" ], function(app) {
	app.lazy.service("MenuService", function() {
		return {
			/** superAdmin **/
			config : {
				
				/**用户管理**/
				userManagement : {
					name : '用户管理',
					routeURL : 'home.userManagement',
					locationURL : '/userManagement',
					title : '用户管理',
					summary : '用户管理'
				}
			},

			/** adminConfig **/
			adminConfig : {
				
				/**用户管理**/
				userManagement : {
					name : '用户管理',
					routeURL : 'home.userManagement',
					locationURL : '/userManagement',
					title : '用户管理',
					summary : '用户管理'
				}
			},
			
			/** companyConfig **/
			companyConfig : {
				
				/**用户管理**//*
				userManagement : {
					name : '用户管理',
					routeURL : 'home.userManagement',
					locationURL : '/userManagement',
					title : '用户管理',
					summary : '用户管理',
				},*/
				/**账户管理**/
				accountManagement : {
					name : '账户管理',
					routeURL : 'home.accountManagement',
					locationURL : '/accountManagement',
					title : '账户管理',
					summary : '账户管理',
					icon:'17.png'
				},
				/**简历搜索**/
				resumeManagement : {
					name : '简历搜索',
					routeURL : 'home.resumeManagement',
					locationURL : '/resumeManagement',
					title : '简历搜索',
					summary : '简历搜索',
					icon:'search.png'
					
				},
				/**招聘管理**/
				recruitManagement : {
					name : '招聘管理',
					routeURL : 'home.recruitManagement',
					locationURL : '/recruitManagement',
					title : '招聘管理',
					summary : '招聘管理',
					icon:'zhaopin.png'
				},
				/**收到的简历**/
				receiveManagement : {
					name : '收到的简历',
					routeURL : 'home.receiveManagement',
					locationURL : '/receiveManagementd',
					title : '收到的简历',
					summary : '收到的简历',
					icon:'resume.png'
				},
				/**登录日志**/
				loginLogManagement : {
					name : '登录日志',
					routeURL : 'home.loginLogManagement',
					locationURL : '/loginLogManagement',
					title : '登录日志',
					summary : '登录日志',
					icon:'resume.png'
				}
				
				
			},
			

			firstLevelMenus : ['userManagement' ],

			queryByLocationURL : function(locationURL) {
				if (this.config && locationURL) {
					
					if (locationURL.indexOf('/userManagement') > -1) {
						return this.config['userManagement'];
					}
				}
				return {};
			},
			queryByLocationAdminURL : function(locationURL) {
				if (this.companyConfig && locationURL) {
					
					if (locationURL.indexOf('/accountManagement') > -1) {
						return this.companyConfig['accountManagement'];
					}
					if (locationURL.indexOf('/resumeManagement') > -1) {
						return this.companyConfig['resumeManagement'];
					}
					if (locationURL.indexOf('/recruitManagement') > -1) {
						return this.companyConfig['recruitManagement'];
					}
					if (locationURL.indexOf('/receiveManagement') > -1) {
						return this.companyConfig['receiveManagement'];
					}
					if (locationURL.indexOf('/loginLogManagement') > -1) {
						return this.companyConfig['loginLogManagement'];
					}
				}
				return {};
			}
		};
	});
});
